<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai"%>

<link href="<%=request.getContextPath()%>/css/ManageGroup.css"
	rel="stylesheet" type="text/css" />

<f:loadBundle basename="messages" var="msg" />
<f:view>

	<sakai:view_container title="View Teacher">
		<h:form>
			<h:commandLink action="manageGroup" value="#{msg.manageGroup}"></h:commandLink>
				|
				<h:commandLink action="viewTeacher" value="#{msg.viewTeacher}"></h:commandLink>
		</h:form>
		<sakai:view_content>

			<sakai:view_title value="View Teacher" />
			<h:messages globalOnly="true" showSummary="true"
				styleClass="labelMessage">
			</h:messages>
			<h:dataTable id="teachers" value="#{ManageGroupBean.teacherId}" var="id" border="1">
				<h:column>
					<f:facet name="header">
						<h:outputText value="#{msg.columnID}" />
					</f:facet>
					<h:outputText value="#{id}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="#{msg.columnSites}" />
					</f:facet>
					<!-- table for sites list -->
					<h:dataTable id="sites" value="#{ManageGroupBean.teacherAndHisSites[id]}" var="siteId">
						<h:column>
							<h:outputText value="#{siteId}" />		
						</h:column>
					</h:dataTable>
					
				</h:column>
			</h:dataTable>
		</sakai:view_content>
	</sakai:view_container>
</f:view>
